Các tham số của bản mẫu này Bản_mẫu:Div_col_end

Miêu tả

Có 6 tham số cho bản mẫu này:

|colwidth=Specifies the minimum width of the columns so that the number of columns is automatically based on screen width (that is, more columns will be shown on wider displays). Can be specified in any CSS unit of measure, for instance, the em (about the width of the capital "M" of the displayed typeface), e.g., colwidth=20em. If no value is supplied, the template uses a default of 30em.|rules=Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).|gap=Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.|style=CSS styling to apply to the columns.|small=yessets font size to 90%.|content=content to apply to the columns.

Ví dụ tham số "colwidth"

Ví dụ có độ rộng cột là 10em
{{div col|colwidth=10em}}* a* b* c* d* e* f* g* h{{div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Ví dụ tham số "rules"

Ví dụ
{{Div col|rules=yes}}* a* b* c* d* e* f* g* h{{Div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Ví dụ tham số "gap"

Ví dụ
{{Div col|colwidth=10em|rules=yes|gap=2em}}* a* b* c* d* e* f* g* h{{Div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Ví dụ tham số "small"

Ví dụ cho thấy cách đặt tham số "small" thành "yes" tạo ra kích thước phông chữ nhỏ hơn
{{Div col|small=yes}}* a* b* c* d* e* f* g* h{{Div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Ví dụ tham số "content"

Ví dụ cho thấy cách cung cấp tham số "content" mà không cần dùng {{Div col end}}
{{Div col|colwidth=10em|content=* a* b* c* d* e* f* g* h}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Cách sử dụng có nhiều tham số

Các tham số có thể được sử dụng theo thứ tự bất kỳ.Ví dụ:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}* a* b* c* d* e* f* g* h{{Div col end}}

hoặc

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}* a* b* c* d* e* f* g* h{{Div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

và chính xác cùng một kết quả dưới đây

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Ví dụ có độ rộng cột là 20em
{{div col|colwidth=20em}}* a* b* c* d* e* f* g* h{{div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Ví dụ có độ rộng cột là 30em
{{div col|colwidth=30em}}* a* b* c* d* e* f* g* h{{div col end}}
kết quả
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Ví dụ về cách cư xử bản mẫu này nếu không có bullets (được tạo ra bởi dấu hoa thị) được sử dụng.
{{div col|colwidth=10em}}abcdefgh{{div col end}}
kết quả

abcdefgh